<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><?=$title?></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1"> 
		<link rel="stylesheet" href="<?=LIB_DIR?>jquery.mobile-1.0.min.css" />
		<link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.css" />
<?php
	foreach($include->css as $i)
		echo "\t\t", '<link rel="stylesheet" href="', CSS_DIR, $i, '.css', (ENVIRONMENT == 'development' ? '?'.@time() : ''), '" />', "\n";
?>
		<script src="<?=LIB_DIR?>jquery-1.7.1.min.js"></script>
		<script type="text/javascript">var CI_ROOT = "<?=base_url().index_page().'/'?>";</script>
<?php
	foreach($include->js as $i)
	{
		$JS_DIR = ''; $file = '';
		if( strtolower(substr($i, 0, 4)) != 'http' ){
			$JS_DIR = JS_DIR;
			$file = '.js' . (ENVIRONMENT == 'development' ? '?'.@time() : '');
		}
		echo "\t\t", '<script src="', $JS_DIR, $i, $file,'" type="text/javascript"></script>', "\n";
	} 	
?>		
		<script type="text/javascript" src="https://www.google.com/jsapi"></script>
		<script type="text/javascript" src="<?=$JS_DIR?>chart.js?<?=@time()?>"></script>
		<script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
	</head>
	<body>